LauncherSubsystem

object LauncherSubsystem : SubsystemBase

Properties

Link copied to clipboard
val bottomFlywheelFeedforward: SimpleMotorFeedforward

Feedforward controller for the bottom flywheel

Link copied to clipboard
val bottomFlywheels: CANSparkFlex

Motor for the bottom flywheels

Link copied to clipboard
val flywheelFeedforward: SimpleMotorFeedforward

Feedforward controller for the flywheel

Link copied to clipboard
val flywheelPIDController: SparkPIDController

PID Controller for the flywheel

Link copied to clipboard
val noteTrigger: Trigger

Trigger for when the note is detected

Link copied to clipboard
val rightNoteDetector: DigitalInput

Sensor placed on the right side of the launcher to detect the note

Link copied to clipboard
val rollerMotor: CANSparkMax

Motor for the roller that feeds the launcher

Link copied to clipboard
val routine: SysIdRoutine

The system identification routine for the launcher subsystem.

Link copied to clipboard

The current stored setpoint for the roller

Link copied to clipboard
val tab: ShuffleboardTab

Shuffleboard tab for the Launcher subsystem

Link copied to clipboard
val topFlywheelFeedforward: SimpleMotorFeedforward

Feedforward controller for the top flywheel

Link copied to clipboard
val topFlywheels: CANSparkFlex

Motor for the top flywheels

Functions

Link copied to clipboard
fun dynamicSysIDRoutine(direction: SysIdRoutine.Direction): Command?

Creates a command to run a dynamic system identification routine

Link copied to clipboard

Get the current position of the roller

Link copied to clipboard

Returns whether the note is being detected

Link copied to clipboard
fun quasiStaticSysIDRoutine(direction: SysIdRoutine.Direction): Command?

Creates a command to run a quasi-static system identification routine

Link copied to clipboard

Set the brake mode for the flywheels

Link copied to clipboard
fun setFlywheelSpeeds(rawSpeed: Double)

Set the flywheel speeds to a raw duty cycle value

Link copied to clipboard

Set the flywheel speeds to a velocity

Link copied to clipboard

Set the flywheel speeds to a voltage

Link copied to clipboard
fun setRollerPosition(position: Double)

Set the roller target position to a setpoint

Link copied to clipboard
fun setRollerSpeed(rawSpeed: Double)

Set the roller speed to a raw duty cycle value

Link copied to clipboard

Set the roller speed to a velocity

Link copied to clipboard

Set the roller speed to a velocity